TARGET   := ./program 
CXXFLAGS := -g -Wextra -Wall -Wno-long-long -pedantic-errors -std=c++98 
CFLAGS   := -g
CXX      := g++
CC		 := gcc
CLIBS    :=-lpthread -ldl 
LIBS     := 
EXT      := cpp 
BUILDDIR := build 
EXECUTABLE=myTribbles
SOURCES=main.cpp sqlite3.c
OBJECTS=main.o sqlite3.o

all: $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(CXX) -o $@ $(OBJECTS) $(CLIBS)

clean:
	rm -f $(OBJECTS) $(EXECUTABLE)

.c.o:
	$(CC) $(CFLAGS) -c -o $@ $<

.cpp.o:
	$(CXX) $(CXXFLAGS) -c -o $@ $<
